
/* 导航栏基础样式 */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 90%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 5%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 品牌样式 */
.nav-brand a {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 导航链接列表 */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* 导航按钮样式 */
.nav-links .nav-button {
    color: #ffffff;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.nav-links .nav-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-links .nav-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links .nav-button:hover::after {
    width: 70%;
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    min-width: 130px;
    border-radius: 5px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 768px) {
    .dropdown-menu {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 16px;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

/* 滚动效果 */
.navigation.scrolled {
    background: rgba(100,100,100, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 5%;
}

/* 搜索图标样式 */
.nav-links .nav-search-item {
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.nav-links .nav-search-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    filter: invert(1) brightness(1.5);
    transition: all 0.3s ease;
}

.nav-links .nav-search-icon:hover {
    transform: scale(1.1);
    filter: invert(1) brightness(1.8);
}

/* 移动端样式 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
        position: relative;
    }
    
    .hamburger span {
        width: 100%;
        height: 2px;
        background: #fff;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 80%;
        height: 100vh;
        padding: 80px 2rem 2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
        gap: 15px;
        align-items: flex-start;
        z-index: 1001;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links .nav-button {
        width: 100%;
        padding: 12px 0;
        font-size: 18px;
    }
    
    .nav-links .nav-button::after {
        display: none;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.05);
        width: 100%;
        margin-top: 5px;
        padding: 5px 0;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        transition: all 0.3s ease;
    }
    
    .nav-dropdown.active .dropdown-menu {
        visibility: visible;
        max-height: 200px;
        padding: 5px 0;
    }
    
    .dropdown-menu li a {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .nav-links .nav-search-item {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }
    
    .nav-links .nav-search-icon {
        width: 24px;
        height: 24px;
    }
}
